package com.flyco.modules.system.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.flyco.modules.system.entity.SysPartner;
import com.flyco.modules.system.mapper.SysPartnerMapper;
import com.flyco.modules.system.service.ISysPartnerService;
import org.springframework.stereotype.Service;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;

import java.util.Collection;
import java.util.List;

/**
 * @Description: 商家
 * @Author: flyco
 * @Date:   2020-06-30
 * @Version: V1.0
 */
@Service
public class SysPartnerServiceImpl extends ServiceImpl<SysPartnerMapper, SysPartner> implements ISysPartnerService {

    @Override
    public List<SysPartner> queryEffectivePartner(Collection<Long> idList) {
        LambdaQueryWrapper<SysPartner> queryWrapper = new LambdaQueryWrapper<>();
        queryWrapper.in(SysPartner::getId,idList);
        return this.list(queryWrapper);
    }
}
